From: Jasper St. Pierre Date: Sat, 21 Feb 2015 01:01:38 +0000 (-0800) Subject: shell-invert-lightness-effect: Fix Cogl deprecations X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1691 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4de20272e569a651bfe79d9d6a79710281b3965d;p=gnome-shell.git shell-invert-lightness-effect: Fix Cogl deprecations --- diff --git a/src/shell-invert-lightness-effect.c b/src/shell-invert-lightness-effect.c index d70151bc2..b3a2ca44f 100644 --- a/src/shell-invert-lightness-effect.c +++ b/src/shell-invert-lightness-effect.c @@ -122,6 +122,7 @@ shell_invert_lightness_effect_paint_target (ClutterOffscreenEffect *effect) ShellInvertLightnessEffect *self = SHELL_INVERT_LIGHTNESS_EFFECT (effect); ClutterActor *actor; guint8 paint_opacity; + CoglFramebuffer *fb = cogl_get_draw_framebuffer (); actor = clutter_actor_meta_get_actor (CLUTTER_ACTOR_META (effect)); paint_opacity = clutter_actor_get_paint_opacity (actor); @@ -131,11 +132,8 @@ shell_invert_lightness_effect_paint_target (ClutterOffscreenEffect *effect) paint_opacity, paint_opacity, paint_opacity); - cogl_push_source (self->pipeline); - - cogl_rectangle (0, 0, self->tex_width, self->tex_height); - - cogl_pop_source (); + cogl_framebuffer_draw_rectangle (fb, self->pipeline, + 0, 0, self->tex_width, self->tex_height); } static void